<template>
  <div class="inventry">
    <el-tabs v-model="activeName" @tab-click="handleOther">
      <el-tab-pane v-if="false" :label="$t('market.priceAnalysis')" name="first">
        <stock-report />
      </el-tab-pane>
      <el-tab-pane :label="$t('menu.proStirageList1')" name="proStirageList1">
        <prolabor-List ref="proStirageList1" />
      </el-tab-pane>
      <el-tab-pane :label="$t('market.puoductSchedule')" name="puoductSchedule">
        <puoductSchedule />
      </el-tab-pane>
      <el-tab-pane :label="$t('market.workshopWip')" name="workshopWipList">
        <workshopWipList />
      </el-tab-pane>
      <el-tab-pane :label="$t('market.scrkyl')" name="stirageList">
        <stirageList />
      </el-tab-pane>
    </el-tabs>
  </div>
</template>

<script>
export default {
  components: {
    puoductSchedule: () => import('@/views/production/planManagement/planReport/puoductSchedule'),
    prolaborList: () => import('@/views/production/collect/prolaborList'),
    workshopWipList: () => import('@/views/financial/statements/workshopWipList'),
    stockReport: () => import('@/views/production/proStatement/component/stockReport'),
    stirageList: () => import('@/views/production/proStatement/component/stirageList')
  },
  data() {
    return {
      activeName: 'proStirageList1'
    }
  },
  methods: {
    handleOther(tab) {
      if (tab.name === 'proStirageList1') { // 入库人工
        this.$refs.proStirageList1.handleGetUntreated()
      }
    }
  }
}
</script>

<style scoped lang="scss">
.inventry {
  background-color: #fff;
  padding: 10px;
}
</style>

